PartialByKeys<T, K>
定義
code:ts
type PartialByKeys_<T, K extends keyof T = keyof T>
= Partial<T>
& Omit<T, K>;
type-challenges 2757
(これを通すためにはMergeIntersections<T>とかを噛ます必要がある)